package com.qfedu.lc.app.controller;


import com.qfedu.lc.app.service.WalletFeign;
import com.qfedu.lc.common.param.PayAdd;
import com.qfedu.lc.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/api/user/wallet")
public class WalletController {


    @Autowired
    private WalletFeign walletFeign;

    @PostMapping("/create")
    public R create( @RequestBody PayAdd payAdd) {

        return  walletFeign.create(payAdd);

    }

}
